package com.javastudy;

import org.junit.Test;

public class Test04 {
	@Test
	public void paste() {
		for (int i = 1; i < 10; i++) {
			for (int j = 1; j < i+1; j++) {
				System.out.print("*");
			}
			System.out.println("");
		}
	}
	@Test
	public void paste2(){
		for (int i = 1;i < 9 ; i++ ){
			for (int j = 0; j < 9-i; j++) {
				System.out.print(" ");
				
			}
			for (int k = 0; k < 2*i-1; k++) {
				System.out.print("*");
			}
			System.out.println("");
		}
		
		
	}
}
